package com.eapi.eapisdk;

import com.eapi.eapisdk.Eapiclient.Eapiclient;
import com.eapi.eapisdk.Eapiclient.model.InterfaceInfoInvokeRequest;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("E-api.client")
@Data
@ComponentScan
public class EapiclientConfig {
     private String accessKey;
     private String secretKey;
     private InterfaceInfoInvokeRequest interfaceInfoInvokeRequest;
     @Bean
    public Eapiclient eapiclient(){
         return new Eapiclient(accessKey,secretKey,interfaceInfoInvokeRequest);
    }
}
